<!--
 * @Description: 异常管理-发起异常
 * @Autor: 曹敬涛
 * @Date: 2021-08-06 15:45:18
 * @LastEditors: 商晓彬
 * @LastEditTime: 2022-02-17 09:09:37
-->
<div class="ex-management">
    <div class="m-subheader">
        <div class="row align-items-center">
            <div class="mr-auto col-auto">
                <h3 class="m-subheader__title m-subheader__title--separator">
                    <span>发起异常</span>
                </h3>
            </div>
        </div>
    </div>

    <div class="m-content">
        <div class="m-portlet m-portlet--mobile">
            <div class="m-portlet__body">
                <div style="margin-bottom: 5px;">
                    <p-button *ngIf="'Pages.InitiateException.newlyAdded' | permission" icon="pi pi-plus" iconPos="left" (click)="addVisible = true;dialogType = '新增'" label="新增">
                    </p-button>
                </div>
                <!-- 查询框 -->
                <div class="ui-g">
                    <span class="ui-float-label quality-dept ui-g-3">
                        <span class="text">任务编号</span>
                        <p-dropdown class="input-width" name="taskCode" #taskCodeSelect="ngModel" [options]="tasklist"
                            [(ngModel)]="queryInfo.taskCode" [filter]="true" filterBy="label" placeholder="请选择">
                        </p-dropdown>
                    </span>
                    <span class="ui-float-label quality-dept ui-g-3">
                        <span class="text">一级异常</span>
                        <p-dropdown class="input-width" name="inspectionSeverityDescId"
                            #inspectionSeverityDescIdSelect="ngModel" [options]="typeDescList"
                            (onChange)="getItemInfoList(queryInfo.inspectionTypeDescId)"
                            [(ngModel)]="queryInfo.inspectionTypeDescId" dataKey="id" [filter]="true" filterBy="label"
                            [optionLabel]="'typeName'" placeholder="请选择">
                        </p-dropdown>

                    </span>
                    <span class="ui-float-label quality-dept ui-g-3">
                        <span class="text">二级异常</span>
                        <p-dropdown class="input-width" name="inspectionItemInfoId"
                            #inspectionItemInfoIdSelect="ngModel" [options]="itemInfoList"
                            [(ngModel)]="queryInfo.inspectionItemInfoId" dataKey="id" [filter]="true" filterBy="label"
                            [optionLabel]="'itemName'" placeholder="请选择">
                        </p-dropdown>
                    </span>
                    <span class="ui-float-label quality-dept ui-g-3">
                        <span class="text">等级</span>
                        <p-dropdown class="input-width" name="inspectionSeverityDescId"
                            #inspectionSeverityDescIdSelect="ngModel" [options]="severityDescList"
                            [(ngModel)]="queryInfo.inspectionSeverityDescId" dataKey="id" [filter]="true"
                            filterBy="label" [optionLabel]="'severityName'" placeholder="请选择">
                        </p-dropdown>

                    </span>
                    <span class="ui-float-label quality-dept ui-g-3">
                        <span class="text" style="margin-right: 13px;">提报人</span>
                        <!-- <input id="float-input" [(ngModel)]="queryInfo.submitterId"> -->
                        <p-dropdown class="input-width" name="submitterId" #submitterIdSelect="ngModel"
                            [options]="userList" [(ngModel)]="queryInfo.submitterId" dataKey="id" [filter]="true"
                            filterBy="label" [optionLabel]="'name'" placeholder="请选择">
                        </p-dropdown>

                    </span>
                    <span class="ui-float-label quality-dept ui-g-3">
                        <span class="text" style="margin-right: 13px;">处理人</span>
                        <!-- <input id="float-input" [(ngModel)]="queryInfo.handlerId"> -->
                        <p-dropdown class="input-width" name="handlerId" #handlerIdSelect="ngModel" [options]="userList"
                            [(ngModel)]="queryInfo.handlerId" dataKey="id" [filter]="true" filterBy="label"
                            [optionLabel]="'name'" placeholder="请选择">
                        </p-dropdown>
                        <p-button label="查询" (click)="getDescList()" class="query-btn"></p-button>
                        <p-button type="button" (click)="reset()" label="重置" class="reset-btn"></p-button>
                    </span>
                </div>
                <!-- 列表 -->
                    <div class="row align-items-center" style="margin-top: 15px;">
                        <div class="primeng-datatable-container">
                            <p-table #dataTable [value]="primengTableHelper.records"
                                rows="{{primengTableHelper.defaultRecordsCountPerPage}}"
                                (onLazyLoad)="getDescList($event)" [paginator]="false" [lazy]="true" [scrollable]="true"
                                [responsive]="primengTableHelper.isResponsive"
                                [resizableColumns]="primengTableHelper.resizableColumns">
                                <ng-template pTemplate="header">
                                    <tr>
                                        <th style="width: 120px">操作</th>

                                        <th style="width: 80px">序号</th>
                                        <th style="width: 110px">异常单号</th>
                                        <th style="width: 110px">创建时间</th>
                                        <th style="width: 110px">任务编号</th>
                                        <th style="width: 110px">一级异常</th>
                                        <th style="width: 110px">二级异常</th>
                                        <th style="width: 110px">异常描述</th>
                                        <th style="width: 110px">异常等级</th>
                                        <th style="width: 110px">状态</th>
                                        <th style="width: 110px">提报人</th>
                                        <th style="width: 110px">处理角色</th>
                                        <th style="width: 110px">责任部门</th>
                                        <th style="width: 110px">处理人</th>
                                        <th style="width: 110px">处理完成时间</th>
                                        <th style="width: 110px">确认时间</th>
                                        <th style="width: 110px">耗费工时</th>
                                    </tr>
                                </ng-template>
                                <ng-template pTemplate="body" let-rowIndex="rowIndex" let-car>
                                    <tr>
                                        <td style="width: 120px">
                                            <div class="btn-group dropdown" dropdown container="body">
                                                <button dropdownToggle class="dropdown-toggle btn btn-sm btn-primary">
                                                    <i class="fa fa-cog"></i><span class="caret"></span> 操作
                                                </button>
                                                <ul class="dropdown-menu" *dropdownMenu>
                                                    <li>
                                                        <a href="javascript:;" *ngIf="'Pages.InitiateException.Resume' | permission"
                                                            (click)="getOperationLogList(car.id)">履历</a>
                                                    </li>
                                                    <li>
                                                        <a *ngIf="'Pages.InitiateException.See' | permission" href="javascript:;" (click)="seeDetail(car)">查看</a>
                                                    </li>
                                                    <li>
                                                        <a href="javascript:;" *ngIf="car.state == 0 && ('Pages.InitiateException.Modify' | permission)"
                                                            (click)="updateInfo(car)">修改</a>
                                                    </li>
                                                    <li>
                                                        <a href="javascript:;" *ngIf="car.state == 2 && ('Pages.InitiateException.Confirm' | permission)"
                                                            (click)="sureInfo(car)">确认结果</a>
                                                    </li>
                                                    <li>
                                                        <a href="javascript:;" *ngIf="car.state == 0 && ('Pages.InitiateException.Delete' | permission)"
                                                            (click)="deleteEv(car.id)">删除</a>
                                                    </li>
                                                </ul>
                                            </div>
                                        </td>
                                        <td style="width: 80px">{{rowIndex+1}}</td>
                                        <td style="width: 110px">{{car.code}}</td>
                                        <td style="width: 110px">{{car.creationTime | date:'yyyy-MM-dd'}}</td>
                                        <td style="width: 110px">{{car.taskCode}}</td>
                                        <td style="width: 110px">{{car.inspectionTypeDesc}}</td>
                                        <td style="width: 110px">{{car.inspectionItemInfo}}</td>
                                        <td style="width: 110px">{{car.inspectionDetails}}</td>
                                        <td style="width: 110px">{{car.inspectionSeverityDesc}}</td>
                                        <td style="width: 110px">{{car.state | exState}}</td>
                                        <td style="width: 110px">{{car.submitter}}</td>
                                        <td style="width: 110px">{{car.roles}}</td>
                                        <td style="width: 110px">{{car.organizationUnits}}</td>
                                        <td style="width: 110px">{{car.handler}}</td>
                                        <td style="width: 110px">{{car.completeTime | date:'yyyy-MM-dd'}}</td>
                                        <td style="width: 110px">{{car.confirmTime | date:'yyyy-MM-dd'}}</td>
                                        <td style="width: 110px">{{car.costTime}}</td>

                                    </tr>
                                </ng-template>
                            </p-table>
                            <div class="primeng-paging-container">
                                <p-paginator [rows]="primengTableHelper.defaultRecordsCountPerPage" #paginator
                                    [totalRecords]="primengTableHelper.totalRecordsCount"
                                    (onPageChange)="getDescList($event)"
                                    [rowsPerPageOptions]="primengTableHelper.predefinedRecordsCountPerPage">
                                </p-paginator>
                                <span class="total-records-count">
                                    {{'TotalRecordsCount' | localize:primengTableHelper.totalRecordsCount}}
                                </span>
                            </div>
                        </div>
                    </div>
            </div>
        </div>
    </div>



    <!-- 新增弹窗 -->
    <p-dialog [style]="{width: '60%', height: '70%',background:'#fff'}" [(header)]="dialogType" [(visible)]="addVisible"
        (onHide)="displayclose()" modal="modal" [responsive]="true">
        <div class="add-label">
            <span class="text">任务编号</span>
            <p-button *ngIf="dialogType=='新增'" (click)="searchBgEv(undefined,$event)" label="请选择"></p-button>
        </div>
        <p-table [value]="selectInfo" [paginator]="false">
            <ng-template pTemplate="header">
                <tr>
                    <th style="width: 80px">序号</th>
                    <th style="width: 210px">任务编号</th>
                    <th style="width: 110px">型号</th>
                    <th style="width: 110px">发次</th>
                    <th style="width: 110px">规程编号</th>
                    <th style="width: 110px">规程名称</th>
                    <th style="width: 110px">工序图号</th>
                    <th style="width: 110px">工序名称</th>
                    <th style="width: 110px">工步图号</th>
                    <th style="width: 210px;word-wrap:break-word; ">工步内容</th>
                </tr>
            </ng-template>
            <ng-template pTemplate="body" let-rowIndex="rowIndex" let-car>
                <tr>

                    <td style="width: 80px">{{rowIndex+1}}</td>
                    <td style="width: 210px">{{car.jobNumber}}</td>
                    <td style="width: 110px">{{car.model}}</td>
                    <td style="width: 110px">{{car.lotNo}}</td>
                    <td style="width: 110px">{{car.techniqueNumber}}</td>
                    <td style="width: 110px">{{car.techniqueName}}</td>
                    <td style="width: 110px">{{car.drawingNo}}</td>
                    <td style="width: 110px">{{car.productionName}}</td>
                    <td style="width: 110px">{{car.workStepDrawingNo}}</td>
                    <td style="width: 210px;word-wrap:break-word; ">{{car.workStepName}}</td>
                </tr>
            </ng-template>
        </p-table>

        <form #addForm="ngForm" *ngIf="addVisible == true" (ngSubmit)="addStandardDesc()" novalidate class="add-form"
            autocomplete="off">
            <div>
                <div class="p-field ml">
                    <span class="input-lable" style="margin-right: 5px;">*一级异常：</span>
                    <p-dropdown class="input-width" name="inspectionTypeDescId" #inspectionTypeDescIdSelect="ngModel"
                        [options]="typeDescList" (onChange)="getItemInfoList(addInfoUi.inspectionTypeDescId)"
                        [(ngModel)]="addInfoUi.inspectionTypeDescId" [filter]="true" filterBy="label"
                        [optionLabel]="'typeName'" placeholder="请选择" required [disabled]="dialogType=='查看'">
                    </p-dropdown>
                    <validation-messages [formCtrl]="inspectionTypeDescIdSelect"></validation-messages>
                </div>
                <div class="p-field ml">
                    <span class="input-lable" style="margin-right: 5px;">*二级异常：</span>
                    <p-dropdown class="input-width" name="inspectionItemInfoId" #inspectionItemInfoIdSelect="ngModel"
                        [options]="itemInfoList" [(ngModel)]="addInfoUi.inspectionItemInfoId" dataKey="id"
                        [filter]="true" filterBy="label" [optionLabel]="'itemName'" placeholder="请选择" required
                        [disabled]="dialogType=='查看'">
                    </p-dropdown>
                    <validation-messages [formCtrl]="inspectionItemInfoIdSelect"></validation-messages>

                </div>
                <div class="p-field ml">
                    <span class="input-lable" style="margin-right: 5px;">*异常等级：</span>
                    <p-dropdown class="input-width" name="inspectionSeverityDescId"
                        #inspectionSeverityDescIdSelect="ngModel" [options]="severityDescList"
                        [(ngModel)]="addInfoUi.inspectionSeverityDescId" dataKey="id" [filter]="true" filterBy="label"
                        [optionLabel]="'severityName'" placeholder="请选择" required [disabled]="dialogType=='查看'">
                    </p-dropdown>
                    <validation-messages [formCtrl]="inspectionSeverityDescIdSelect"></validation-messages>

                </div>


                <div class="p-field ml">
                    <span class="input-lable" style="margin-right: 5px;">指派处理人：</span>
                    <p-dropdown class="input-width" name="submitterId" #submitterIdInput="ngModel" [options]="userList"
                        [(ngModel)]="addInfoUi.handlerId" dataKey="id" [filter]="true" filterBy="label"
                        [optionLabel]="'name'" placeholder="请选择" [disabled]="dialogType=='查看'">
                    </p-dropdown>

                </div>
                <div class="p-field ml">
                    <span class="input-lable" style="margin-right: 5px;">*异常描述：</span>
                    <input name="definition" id="model" type="text" size="30" pInputText
                        [(ngModel)]="addInfoUi.inspectionDetails" #definitionInput="ngModel" required
                        [disabled]="dialogType=='查看'">
                    <validation-messages [formCtrl]="definitionInput"></validation-messages>

                </div>
                <p class="add-upload">支持PNG格式，最多上传5张</p>
                <!-- (onRemove)="myRemove($event)" -->
                <p-fileUpload customUpload="true" chooseLabel="请选择上传图片" (onUpload)="onUpload($event)"
                    [disabled]="dialogType=='查看'" [(files)]="uploadedFiles" multiple="false" auto="auto"
                    accept="image/*" maxFileSize="1000000">
                    <ng-template let-file pTemplate="file">
                        <div class="ui-fileupload-files ng-star-inserted">
                            <div class="ng-star-inserted">
                                <div class="ui-fileupload-row ng-star-inserted">
                                    <a target="_blank"
                                    [href]="file.objectURL">
                                        <img [src]="file.objectURL" width="50" class="ng-star-inserted">
                                    </a>
                                    <div> {{file.name}}</div>
                                    <!-- <div>{{file.size}}</div> -->
                                    <div *ngIf="dialogType!='查看'" (click)="remoteFile(file)">
                                        <button icon="pi pi-times" pbutton="" type="button"
                                            ng-reflect-icon="pi pi-times"
                                            class="ui-button ui-widget ui-state-default ui-corner-all ui-button-icon-only">
                                            <span aria-hidden="true"
                                                class="ui-button-icon-left ui-clickable pi pi-times">
                                            </span>
                                            <span class="ui-button-text ui-clickable">ui-btn</span>
                                        </button>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </ng-template>
                </p-fileUpload>




            </div>
            <div class="modal-footer" *ngIf="dialogType!='查看'">
                <!-- <button type="submit" class="btn btn-primary" [disabled]="!addForm.form.valid" [buttonBusy]="savingAddDia"
          [busyText]="l('SavingWithThreeDot')"><i class="fa fa-save"></i>
          <span>提交</span></button> -->
                <button type="submit" class="btn btn-primary" [disabled]="!addForm.form.valid"
                    [buttonBusy]="savingAddDia" [busyText]="l('SavingWithThreeDot')"><i class="fa fa-save"></i>
                    <span>提交</span></button>
            </div>
        </form>
    </p-dialog>
    <!-- 报工任务 -->
    <p-dialog header="报工任务" [(visible)]="reportingVisible" modal="modal" [responsive]="true">
        <p-table #dataTablebg [value]="primengSonTableHelper.records"
            rows="{{primengSonTableHelper.defaultRecordsCountPerPage}}" [paginator]="false"
            [(selection)]="baogongSelect" [scrollable]="true" [responsive]="primengSonTableHelper.isResponsive"
            [resizableColumns]="primengSonTableHelper.resizableColumns" dataKey="id">
            <ng-template pTemplate="header">
                <tr>
                    <th style="width: 80px">
                        <!-- <p-tableHeaderCheckbox></p-tableHeaderCheckbox> -->
                    </th>
                    <th style="width: 80px">序号</th>
                    <th style="width: 110px">任务编号</th>
                    <th style="width: 110px">型号</th>
                    <th style="width: 110px">发次</th>
                    <th style="width: 110px">规程编号</th>
                    <th style="width: 110px">规程名称</th>
                    <th style="width: 110px">工序图号</th>
                    <th style="width: 110px">工序名称</th>
                    <th style="width: 110px">工步图号</th>
                    <th style="width: 210px">工步内容</th>



                </tr>
            </ng-template>
            <ng-template pTemplate="body" let-rowIndex="rowIndex" let-car="$implicit">
                <tr>
                    <td style="width: 80px">
                        <!-- <p-tableCheckbox [value]="car"></p-tableCheckbox> -->
                        <p-tableRadioButton [value]="car"></p-tableRadioButton>
                    </td>
                    <td style="width: 80px">{{rowIndex+1}}</td>
                    <td style="width: 110px">{{car.jobNumber}}</td>
                    <td style="width: 110px">{{car.model}}</td>
                    <td style="width: 110px">{{car.lotNo}}</td>
                    <td style="width: 110px">{{car.techniqueNumber}}</td>
                    <td style="width: 110px">{{car.techniqueName}}</td>
                    <td style="width: 110px">{{car.drawingNo}}</td>
                    <td style="width: 110px">{{car.productionName}}</td>
                    <td style="width: 110px">{{car.workStepDrawingNo}}</td>
                    <td style="width: 210px;word-wrap:break-word; ">{{car.workStepName}}</td>
                </tr>
            </ng-template>
        </p-table>
        <div class="primeng-paging-container">
            <p-paginator [rows]="primengSonTableHelper.defaultRecordsCountPerPage" #paginatorbg
                [totalRecords]="primengSonTableHelper.totalRecordsCount" (onPageChange)="searchBgEv(undefined,$event)"
                [rowsPerPageOptions]="primengSonTableHelper.predefinedRecordsCountPerPage">
            </p-paginator>
            <span class="total-records-count">
                {{'TotalRecordsCount' | localize:primengSonTableHelper.totalRecordsCount}}
            </span>
        </div>


        <p-footer>
            <button type="button" (click)="addbaogongEv()" pButton icon="fa-close" label="完成"></button>
        </p-footer>
    </p-dialog>
    <!-- 异常履历 -->
    <p-dialog [style]="{width: '60%', height: '50%',background:'#fff'}" header="异常履历" [(visible)]="resumeVisible"
        modal="modal" [responsive]="true">

        <p-steps [(activeIndex)]="activeIndex" [model]="logList"></p-steps>
        <div class="resume-list">
            <div *ngFor="let item of logList ; let i = index" class="resume-item">
                <div class="yes-active" *ngIf="i === activeIndex">
                    <div>{{item.content}}</div>
                    <div>{{item.creationTime | date:'yyyy-MM-dd'}}</div>
                </div>
                <div class="no-active" *ngIf="i !== activeIndex">
                    <div>{{item.content}}</div>
                    <div>{{item.creationTime | date:'yyyy-MM-dd'}}</div>
                </div>

            </div>
        </div>


        <p-footer>
            <button type="button" pButton icon="fa-close" label="完成"></button>
        </p-footer>
    </p-dialog>
    <!-- 确认结果 -->
    <p-dialog header="确认结果" [(visible)]="sureVisible" modal="modal" [responsive]="true" (onHide)="onHideSureVisible()">


        <form #sureForm="ngForm" (ngSubmit)="submitEv()" novalidate class="add-form" autocomplete="off">
            <div class="p-formgroup-inline">
                <span class="p-field ml">
                    <span class="input-lable" style="margin-right: 5px;">创建日期：</span>
                    <input name="addInfoUi.creationTime" #creationTimeInput="ngModel" [(ngModel)]="creationTime" disabled>

                </span>
                <span class="p-field ml">
                    <span class="input-lable" style="margin-right: 5px;">异常单号：</span>
                    <input [(ngModel)]="addInfoUi.code" name="code" #codeInput="ngModel" disabled>

                </span>
                <br />
                <span class="p-field ml">
                    <span class="input-lable" style="margin-right: 5px;">一级异常：</span>
                    <input [(ngModel)]="addInfoUi.inspectionTypeDesc" name="inspectionTypeDesc"
                        #inspectionTypeDescInput="ngModel" disabled>

                </span>
                <span class="p-field ml">
                    <span class="input-lable" style="margin-right: 5px;">二级异常：</span>
                    <input [(ngModel)]="addInfoUi.inspectionItemInfo" name="inspectionItemInfo"
                        #inspectionItemInfoInput="ngModel" disabled>

                </span>
                <br />
                <span class="p-field ml">
                    <span class="input-lable" style="margin-right: 5px;">异常等级：</span>
                    <input [(ngModel)]="addInfoUi.inspectionSeverityDesc" name="inspectionSeverityDesc"
                        #inspectionSeverityDescInput="ngModel" disabled>

                </span>
                <span class="p-field ml">
                    <span class="input-lable" style="margin-right: 5px;">提 报 人：</span>
                    <input [(ngModel)]="addInfoUi.submitter" name="submitter" #submitterInput="ngModel" disabled>
                </span>
                <br />
                <div class="p-field ml">
                    <span class="input-lable" style="margin-right: 5px;">任务编号：</span>
                    <input [(ngModel)]="addInfoUi.taskCode" name="taskCode" #taskCodeInput="ngModel" disabled>
                </div>
                <div class="p-field ml">
                    <span class="input-lable" style="margin-right: 5px;">异常描述：</span>
                    <input [(ngModel)]="addInfoUi.inspectionDetails" name="inspectionDetails"
                        #inspectionDetailsInput="ngModel" disabled>

                </div>
                <p-lightbox class="images-list" [images]="images"></p-lightbox>
                <div class="p-field ml">
                    <span class="input-lable" style="margin-right: 5px;">原因分析：</span>
                    <input [(ngModel)]="addInfoUi.causeAnalysis" name="causeAnalysis" #causeAnalysisInput="ngModel"
                        disabled>

                </div>
                <div class="p-field ml">
                    <span class="input-lable" style="margin-right: 5px;">处理措施：</span>
                    <input [(ngModel)]="addInfoUi.treatmentMeasures" name="treatmentMeasures"
                        #treatmentMeasuresInput="ngModel" disabled>

                </div>
                <span class="p-field ml">
                    <span class="input-lable" style="margin-right: 5px;">处理人：</span>
                    <input [(ngModel)]="addInfoUi.handler" name="handler" #handlerInput="ngModel" disabled>

                </span>
                <span class="p-field ml">
                    <span class="input-lable" style="margin-right: 5px;">处理完成时间：</span>
                    <input [(ngModel)]="addInfoUi.handleTime" name="handleTime" #handleTimeInput="ngModel" disabled>

                </span>
                <div class="p-field ml">
                    <span class="input-lable" style="margin-right: 5px;">确认人：</span>
                    <input [(ngModel)]="addInfoUi.confirmer" name="confirmer" #confirmerInput="ngModel" disabled>
                </div>

                <div class="p-field ml">
                    <span class="input-lable" style="margin-right: 5px;">*确认处理结果：</span>
                    <p-dropdown class="input-width" name="submitterId" #submitterIdSelect="ngModel"
                        [options]="sureSelect" [(ngModel)]="addInfoUi.state" dataKey="value" [optionLabel]="'label'"
                        placeholder="请选择">
                    </p-dropdown>
                    <validation-messages [formCtrl]="submitterIdSelect"></validation-messages>

                </div>
                <div class="p-field ml">
                    <span class="input-lable" style="margin-right: 5px;">*确认意见：</span>
                    <input name="confirmSuggest" pInputText [(ngModel)]="addInfoUi.confirmSuggest"
                        #confirmSuggestInput="ngModel">
                    <validation-messages [formCtrl]="confirmSuggestInput"></validation-messages>
                </div>
                <div class="p-field ml">
                    <span class="input-lable" style="margin-right: 5px;">*确认时间：</span>
                    <!-- <input name="confirmTime" pInputText  [(ngModel)]="addInfoUi.confirmTime" #confirmTimeInput="ngModel"> -->
                    <p-calendar name="confirmTime" dateFormat="yy-mm-dd" #confirmTimeInput="ngModel"
                        [(ngModel)]="addInfoUi.confirmTime" [showTime]="true"></p-calendar>
                    <validation-messages [formCtrl]="confirmTimeInput"></validation-messages>
                </div>



                <div class="p-field ml">
                    <span class="input-lable" style="margin-right: 5px;">*损失工时：</span>
                    <input name="costTime" pInputText [(ngModel)]="addInfoUi.costTime" #costTimeInput="ngModel">
                    <validation-messages [formCtrl]="costTimeInput"></validation-messages>
                </div>

            </div>
            <div class="modal-footer" *ngIf="dialogType!='查看'">
                <button type="submit" class="btn btn-primary" [disabled]="!sureForm.form.valid"
                    [buttonBusy]="savingsureDia" [busyText]="l('SavingWithThreeDot')"><i class="fa fa-save"></i>
                    <span>提交</span></button>
                <button type="button" pButton icon="fa-close" label="取消"></button>

            </div>
        </form>
        <!-- <p-footer>
      <button type="button" pButton icon="fa-close" (click)="submitEv()" label="提交"></button>
      <button type="button" pButton icon="fa-close" label="取消"></button>
    </p-footer> -->
    </p-dialog>
</div>